package com.lune.job.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lune.job.pojo.Experience;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Caiyilin
 * @since 2022-03-06
 */
public interface ExperienceMapper extends BaseMapper<Experience> {

    /**
     * 分页查询工作经历
     * @param page
     * @param experience
     * @return
     */
    IPage<Experience> getAllCompanyByPage(Page<Experience> page, Experience experience);

    /**
     * 条件查询工作经历
     * @param experience
     * @return
     */
    List<Experience> queryByCon(Experience experience);
}
